import EventEmitter from './EventEmitter';
import {addEventNs,addOnOneEvent} from './eventNs';

export const generateEventEmitter=()=>{
    const event=new EventEmitter();
    return wrapEventEmitter(event);
};
export const wrapEventEmitter=(event,opt)=>{
    addEventNs(event,opt);
    addOnOneEvent(event);
    return event;
};

export default generateEventEmitter;